// component/toppage/toppage.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    page_number: 0,
  },

  /**
   * 组件的方法列表
   */
  methods: {
    top_closeThis() {
      this.triggerEvent('closeThis');
    },
    last_page_number() {
      if (this.data.page_number < 3) {
        this.setData({ page_number: this.data.page_number + 1 });
      } else {
        this.setData({ page_number: 0 });
      }
    }

  }
})
